#include "searcher.hpp"
#include<memory>
const std::string input = "data/output/dest.txt";

int main()
{
    std::unique_ptr<ns_searcher::Searcher> searcher(new ns_searcher::Searcher());
    searcher->SearcherInit(input);

    while(1)
    {
        std::string jsonstring;
        std::string query;
        std::cout<<"Please enter your query (or 'exit' to quit):";
        std::getline(std::cin,query);
        if(query == "exit")break;
        searcher->Search(query,&jsonstring);
        std::cout<<jsonstring<<std::endl;
    }


    return 0;
}
